<?php

namespace App\Http\Controllers\Api;

use App\Models\ExchangeRate;
use App\Transformers\ExchangeRateTransformer;
use Illuminate\Http\Request;

class ExchangeRateController extends Controller
{
    public function index()
    {
        $data = ExchangeRate::paginate();

        return $this->response->paginator($data, new ExchangeRateTransformer());
    }
}
